<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
$item = $this->product;
?>
<script language="javascript">
jQuery(document).ready(function(){
	checkTire = function(){
		if(jQuery('#steel').is(':checked')){
			jQuery('#alu_tire').attr('disabled','disabled');
			jQuery('#stand_tire').removeAttr('disabled');
		}
		if(jQuery('#alu').is(':checked')){
			jQuery('#stand_tire').attr('disabled','disabled');
			jQuery('#alu_tire').removeAttr('disabled');
		}
	}
	
	checkTire();
});
</script>
<style>
table.admintable td.key{
	width:120px;
}
.cl{
	clear:left;
}

</style>
<h3 style="margin: 0 0 0.25em;border-bottom: 1px dotted #666666;">Sikkerhed</h3>
<table width="303" cellspacing="0" cellpadding="0" border="0" class="m3b frm-other">
  <tbody><tr>
    <td><input type="checkbox" id="abs" name="abs" <?php if($item->abs) echo 'checked="checked"';?> value="ABS-bremser"/>
      <label for="checkbox">ABS-bremser</label></td>
    <td><input type="checkbox" id="alarm" name="alarm" <?php if($item->alarm) echo 'checked="checked"';?> value="Alarm"/>
      <label for="checkbox">Alarm</label></td>
  </tr>
  <tr>
    <td><input type="checkbox" id="antispin" name="antispin" <?php if($item->antispin) echo 'checked="checked"';?> value="Antispin"/>
      <label for="checkbox">Antispin</label></td>
    <td><input type="checkbox" id="start" name="start" <?php if($item->start) echo 'checked="checked"';?> value="Startspærre"/>
      <label for="checkbox">Startspærre</label></td>
  </tr>
  <tr>
    <td><input type="checkbox" id="esp" name="esp" <?php if($item->esp) echo 'checked="checked"';?> value="ESP / ESC"/>
      <label for="checkbox">ESP / ESC</label>
    </td>
    <td>
      <label for="checkbox">Airbags (min.) </label>
      <select style="text-align:center;" class="w50" name="airbag">
        <option <?php if($item->airbag == 0) echo 'selected="selected"';?> value="0">0</option>
        <option <?php if($item->airbag == 1) echo 'selected="selected"';?> value="1">1</option>
        <option <?php if($item->airbag == 2) echo 'selected="selected"';?> value="2">2</option>
        <option <?php if($item->airbag == 3) echo 'selected="selected"';?> value="3">3</option>
        <option <?php if($item->airbag == 4) echo 'selected="selected"';?> value="4">4</option>
        <option <?php if($item->airbag == 5) echo 'selected="selected"';?> value="5">5</option>
        <option <?php if($item->airbag == 6) echo 'selected="selected"';?> value="6">6</option>
        <option <?php if($item->airbag == 7) echo 'selected="selected"';?> value="7">7</option>
        <option <?php if($item->airbag == 8) echo 'selected="selected"';?> value="8">8</option>
        <option <?php if($item->airbag == 9) echo 'selected="selected"';?> value="9">9</option>
        <option <?php if($item->airbag == 10) echo 'selected="selected"';?> value="10">10</option>
        <option <?php if($item->airbag == 11) echo 'selected="selected"';?> value="11">11</option>
        <option <?php if($item->airbag == 12) echo 'selected="selected"';?> value="12">12</option>
        <option <?php if($item->airbag == 13) echo 'selected="selected"';?> value="13">13</option>
        <option <?php if($item->airbag == 14) echo 'selected="selected"';?> value="14">14</option>
     </select>
    </td>
  </tr>
</tbody>
</table>
<h3 style="margin: 0 0 0.25em;border-bottom: 1px dotted #666666;">Interiør</h3>
<table width="303" cellspacing="0" cellpadding="0" border="0" class="m3b frm-other" style="margin-bottom:3px;">
      <tbody>
      <tr>
        <td ><input type="checkbox" id="armrest" name="armrest" <?php if($item->armrest) echo 'checked="checked"';?> value="Armlæn"/>
          <label for="checkbox">Armlæn</label></td>
        <td><input type="checkbox" id="split_seat" name="split_seat" <?php if($item->split_seat) echo 'checked="checked"';?> value="Splitbagsæde"/>
          <label for="checkbox">Splitbagsæde</label></td>
      </tr>
      <tr>
        <td><input type="checkbox" id="wood" name="wood" <?php if($item->wood) echo 'checked="checked"';?> value="Træinteriør"/>
          <label for="checkbox">Træinteriør</label></td>
        <td><input type="checkbox" id="leather_steering" name="leather_steering" <?php if($item->leather_steering) echo 'checked="checked"';?> value="Læderrat"/>
          <label for="checkbox">Læderrat</label></td>
      </tr>
      <tr>
       
        <td colspan="2">
          <label for="checkbox">Sædebetræk  </label>
          <select style="text-align:center;" class="w100" name="seat_cover">
            <option <?php if($item->seat_cover == 'Stof') echo 'selected="selected"';?> value="Stof">Stof </option>
            <option <?php if($item->seat_cover == 'Læder') echo 'selected="selected"';?> value="Læder">Læder </option>
            <option <?php if($item->seat_cover == 'Dellæder') echo 'selected="selected"';?> value="Dellæder">Dellæder</option>
         </select>
        </td>
      </tr>
    </tbody>
    </table>
    <div class="cl"></div>
    
    <label style="float:left;">Justérbart rat: </label>
    <div class="m10t">
        <input name="flexible" type="radio"  value="Ja" <?php if($item->flexible == 'Ja') echo 'checked="checked"';?> /><span class="pblack"> Ja &nbsp; &nbsp;</span>
        <input name="flexible" type="radio"  value="Nej" <?php if($item->flexible == 'Nej') echo 'checked="checked"';?> /><span class="pblack"> Nej</span>
    </div>
     
    <div class="cl"></div>
    <label style="float:left;">Dæk og fælge:</label>
    <div class="cl"></div>
    <input type="radio" name="raddek" id="steel" onchange="checkTire();" <?php if($item->stand_tire) echo 'checked="checked"';?> /><span class="p-black m5r">Stål </span>
    <select disabled="disabled" class="w50" name="stand_tire" id="stand_tire">
        <option <?php if($item->stand_tire == 'Stål 13') echo 'selected="selected"';?> value="Stål 13">13</option>
        <option <?php if($item->stand_tire == 'Stål 14') echo 'selected="selected"';?> value="Stål 14">14</option>
        <option <?php if($item->stand_tire == 'Stål 15') echo 'selected="selected"';?> value="Stål 15">15</option>
        <option <?php if($item->stand_tire == 'Stål 16') echo 'selected="selected"';?> value="Stål 16">16</option>
        <option <?php if($item->stand_tire == 'Stål 17') echo 'selected="selected"';?> value="Stål 17">17</option>
        <option <?php if($item->stand_tire == 'Stål 18') echo 'selected="selected"';?> value="Stål 18">18</option>
    </select>
    <input type="radio" name="raddek" class="m12l" id="alu" onchange="checkTire();" <?php if($item->alu_tire) echo 'checked="checked"';?>/><span class="p-black m5r">Alu </span>
    <select disabled="disabled" class="w50" name="alu_tire" id="alu_tire">
        <option <?php if($item->alu_tire == 'Alu 13') echo 'selected="selected"';?> value="Alu 13">13</option>
        <option <?php if($item->alu_tire == 'Alu 14') echo 'selected="selected"';?> value="Alu 14">14</option>
        <option <?php if($item->alu_tire == 'Alu 15') echo 'selected="selected"';?> value="Alu 15">15</option>
        <option <?php if($item->alu_tire == 'Alu 16') echo 'selected="selected"';?> value="Alu 16">16</option>
        <option <?php if($item->alu_tire == 'Alu 17') echo 'selected="selected"';?> value="Alu 17">17</option>
        <option <?php if($item->alu_tire == 'Alu 18') echo 'selected="selected"';?> value="Alu 18">18</option>
        <option <?php if($item->alu_tire == 'Alu 19') echo 'selected="selected"';?> value="Alu 19">19</option>
        <option <?php if($item->alu_tire == 'Alu 20') echo 'selected="selected"';?> value="Alu 20">20</option>
        <option <?php if($item->alu_tire == 'Alu 21') echo 'selected="selected"';?> value="Alu 21">21</option>
        <option <?php if($item->alu_tire == 'Alu 22') echo 'selected="selected"';?> value="Alu 22">22</option>
        <option <?php if($item->alu_tire == 'Alu 23') echo 'selected="selected"';?> value="Alu 23">23</option>
        <option <?php if($item->alu_tire == 'Alu 24') echo 'selected="selected"';?> value="Alu 24">24</option>
    </select>
    <div class="cl"></div>
    <label for="checkbox" style="float:left;">Dækmønster <span>(mm)</span>: </label>
      <select style="text-align:center;" class="w100" name="tread">
        <option <?php if($item->tread == 'Under 3') echo 'selected="selected"';?> value="Under 3">Under 3 </option>
        <option <?php if($item->tread == 'Over 3') echo 'selected="selected"';?> value="Over 3">Over 3 </option>
        <option <?php if($item->tread == 'Over 10') echo 'selected="selected"';?> value="Over 10">Over 10</option>
     </select> 